<html>
<head>
   <title>Grid Ordenes Ingresadas</title>
		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
      <script type="text/javascript" src="../js/jquery-1.5.2.js"></script>
		<script type="text/javascript" src="../js/jquery-ui-1.8.14.custom.min.js"></script>
      <script type='text/javascript' src='../js/jquery.autocomplete.js'></script> 
      <script type="text/javascript" src="../js/jquery.validate.js"></script>
      <script type='text/javascript' src='../js/funciones_js.js'></script>
		<link type="text/css" href="../css/start/jquery-ui-1.8.14.custom.css" rel="Stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/plantilla.css" />
		<link rel="stylesheet" type="text/css" href="../css/jquery.autocomplete.css" />
		<link rel="stylesheet" type="text/css" href="../css/tabla.css" />
     
</head>
<body>


<form name="formularioGrid" id="formularioGrid" action="proceso_master_carga.php" method="post">
<table class="data">
   <thead class="data">
   <tr>
      <th>Orden de Flete</th>
      <th>Comuna Origen</th>
		<th>Origen</th>
		<th>Comuna Destino</th>
		<th>Destino</th>
		<th>Cajas</th>
		<th>Sobres</th>
		<th>Valijas</th>
		<th>Seleccionar</th>
   </tr>
   </thead>
   <tbody class="data">
   
   <?php
   $j = 1;
	$array = arrayOrdenesIngresadas($_SESSION['encomiendasMaster']);
   for($i = 0 ; $i < count($array); $i++):
      ?>
   
      <tr>
			<td><?php echo $array[$i]['id_orden_flete']; ?></td>
			 <td><?php echo $array[$i]['comuna_origen'] ?></td>
			<td><?php echo $array[$i]['origen'] ?></td>
         <td><?php echo $array[$i]['comuna_destino'] ?></td>
			<td><?php echo $array[$i]['destino'] ?></td>
			<td><?php echo $array[$i]['cajas'] ?></td>
			<td><?php echo $array[$i]['sobres'] ?></td>
			<td><?php echo $array[$i]['valijas'] ?></td>
			<td><button name="Eliminar" id="Eliminar" value="<?php echo $i . "|" . $array[$i]['id_orden_flete']; ?>">Eliminar</button></td>
         
		</tr>
   
   <?php
       
     
   endfor;
   ?>
   
   </tbody>
</table>
</form>
</body>
</html>